<template>
  <div class="index">111</div>
</template>

<script>
export default {
  name: "index",
  data() {
    return {
      activeIndex: "",
      menuList: []
    };
  },

  created() {
    this.getDepartmentList();
  },
  methods: {
    getDepartmentList() {
      // console.log(111);
      this.$axios.get("/api/CjwDepartment/GetDepartmentList").then(res => {
        this.menuList = res.data;
      });
      console.log(this.menuList);
    },

    menuClick(id) {
      this.activeIndex = id;
      // let name = "chenjiawei";
      console.log(id);
      // this.$emit("admin", name);
      // let time =
    }
  }
};
</script>

<style scoped>
.index {
  display: flex;
  height: 100%;
  margin-left: 251px;
}
</style>